package com.hfzy.ihk.web.linkcall.constant;

import com.hfzy.ihk.common.util.string.StringUtil;

/**
 * Created by Administrator on 2016/6/14.
 *
 * @author wws
 *
 */
public class RedisKey {

    public static String CALL_TASK_TASK_PHONE_NUM = "callTask:taskPhoneNum:";//call客资料包的号码被外呼的次数

    public static String RE_ADVICE_LOAD_KNOWLEDGE_BASE_IDS = "knowledgeBase:reAdviceLoadDataIds";//更新的知识库ids推送失败时，重推的记录ids


    public static String JOB_STATUS = "job:status:";//用于记录job执行的状态，如果job有需要执行完后，才触发下次job的执行时，可用此进行标注

    public static String getTaskPhoneNumRedisKey(String callTaskId){
        return StringUtil.strConnect(CALL_TASK_TASK_PHONE_NUM, callTaskId);
    }

    public static String getJobStatusRedisKey(String className){
        return StringUtil.strConnect(JOB_STATUS, className);
    }

    //通知数据变动到AI服务 redis前缀
    public static String RE_ADVICE_UPDATE_DATA_TO_AI_SERVER = "reAdviceData:jsonStr";

}
